package org.amicofragile.test.ws.server;

import javax.xml.ws.Endpoint;

import org.amicofragile.test.ws.service.EuroServiceImpl;

public class WSServer
{
	private Endpoint euroEndpoint = null;
	
	public WSServer()
	{
		this.euroEndpoint = Endpoint.create(new EuroServiceImpl());
	}
	
	private void publish(final String uri)
	{
        euroEndpoint.publish("http://10.1.225.70:8080/ws/EuroService");
    }
	/**
	 * @param args
	 */
	public static void main(final String[] args)
	{
		if(args.length != 1)
		{
			System.err.println("Necessario parametro URI");
			System.exit(1);
		}
		new WSServer().publish(args[0]);
	}
}